const reducer=(prevState=[],action)=>{
    //console.log(prevState,action)
    let {type,payload}=action
    let newState
    switch(type){
        case "RecipeList":
        newState=[
            ...prevState,
            ...payload
        ]
        return newState

        default:
            return prevState
    }
}
export default reducer